﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000B5B RID: 2907
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class ModifyRelicFilterPlanCsReq : IMessage<ModifyRelicFilterPlanCsReq>, IMessage, IEquatable<ModifyRelicFilterPlanCsReq>, IDeepCloneable<ModifyRelicFilterPlanCsReq>, IBufferMessage
	{
		// Token: 0x170024B1 RID: 9393
		// (get) Token: 0x060081FC RID: 33276 RVA: 0x0015AE68 File Offset: 0x00159068
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<ModifyRelicFilterPlanCsReq> Parser
		{
			get
			{
				return ModifyRelicFilterPlanCsReq._parser;
			}
		}

		// Token: 0x170024B2 RID: 9394
		// (get) Token: 0x060081FD RID: 33277 RVA: 0x0015AE6F File Offset: 0x0015906F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return ModifyRelicFilterPlanCsReqReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x170024B3 RID: 9395
		// (get) Token: 0x060081FE RID: 33278 RVA: 0x0015AE81 File Offset: 0x00159081
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return ModifyRelicFilterPlanCsReq.Descriptor;
			}
		}

		// Token: 0x060081FF RID: 33279 RVA: 0x0015AE88 File Offset: 0x00159088
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ModifyRelicFilterPlanCsReq()
		{
		}

		// Token: 0x06008200 RID: 33280 RVA: 0x0015AE90 File Offset: 0x00159090
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ModifyRelicFilterPlanCsReq(ModifyRelicFilterPlanCsReq other) : this()
		{
			this.slotIndex_ = other.slotIndex_;
			ModifyRelicFilterPlanCsReq.InfoOneofCaseOneofCase infoOneofCaseCase = other.InfoOneofCaseCase;
			if (infoOneofCaseCase != ModifyRelicFilterPlanCsReq.InfoOneofCaseOneofCase.Name)
			{
				if (infoOneofCaseCase != ModifyRelicFilterPlanCsReq.InfoOneofCaseOneofCase.Settings)
				{
					if (infoOneofCaseCase == ModifyRelicFilterPlanCsReq.InfoOneofCaseOneofCase.Icon)
					{
						this.Icon = other.Icon.Clone();
					}
				}
				else
				{
					this.Settings = other.Settings.Clone();
				}
			}
			else
			{
				this.Name = other.Name;
			}
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06008201 RID: 33281 RVA: 0x0015AF09 File Offset: 0x00159109
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ModifyRelicFilterPlanCsReq Clone()
		{
			return new ModifyRelicFilterPlanCsReq(this);
		}

		// Token: 0x170024B4 RID: 9396
		// (get) Token: 0x06008202 RID: 33282 RVA: 0x0015AF11 File Offset: 0x00159111
		// (set) Token: 0x06008203 RID: 33283 RVA: 0x0015AF19 File Offset: 0x00159119
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint SlotIndex
		{
			get
			{
				return this.slotIndex_;
			}
			set
			{
				this.slotIndex_ = value;
			}
		}

		// Token: 0x170024B5 RID: 9397
		// (get) Token: 0x06008204 RID: 33284 RVA: 0x0015AF22 File Offset: 0x00159122
		// (set) Token: 0x06008205 RID: 33285 RVA: 0x0015AF3D File Offset: 0x0015913D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public string Name
		{
			get
			{
				if (!this.HasName)
				{
					return "";
				}
				return (string)this.infoOneofCase_;
			}
			set
			{
				this.infoOneofCase_ = ProtoPreconditions.CheckNotNull<string>(value, "value");
				this.infoOneofCaseCase_ = ModifyRelicFilterPlanCsReq.InfoOneofCaseOneofCase.Name;
			}
		}

		// Token: 0x170024B6 RID: 9398
		// (get) Token: 0x06008206 RID: 33286 RVA: 0x0015AF57 File Offset: 0x00159157
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool HasName
		{
			get
			{
				return this.infoOneofCaseCase_ == ModifyRelicFilterPlanCsReq.InfoOneofCaseOneofCase.Name;
			}
		}

		// Token: 0x06008207 RID: 33287 RVA: 0x0015AF62 File Offset: 0x00159162
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void ClearName()
		{
			if (this.HasName)
			{
				this.ClearInfoOneofCase();
			}
		}

		// Token: 0x170024B7 RID: 9399
		// (get) Token: 0x06008208 RID: 33288 RVA: 0x0015AF72 File Offset: 0x00159172
		// (set) Token: 0x06008209 RID: 33289 RVA: 0x0015AF8B File Offset: 0x0015918B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RelicFilterPlanIcon Icon
		{
			get
			{
				if (this.infoOneofCaseCase_ != ModifyRelicFilterPlanCsReq.InfoOneofCaseOneofCase.Icon)
				{
					return null;
				}
				return (RelicFilterPlanIcon)this.infoOneofCase_;
			}
			set
			{
				this.infoOneofCase_ = value;
				this.infoOneofCaseCase_ = ((value == null) ? ModifyRelicFilterPlanCsReq.InfoOneofCaseOneofCase.None : ModifyRelicFilterPlanCsReq.InfoOneofCaseOneofCase.Icon);
			}
		}

		// Token: 0x170024B8 RID: 9400
		// (get) Token: 0x0600820A RID: 33290 RVA: 0x0015AFA2 File Offset: 0x001591A2
		// (set) Token: 0x0600820B RID: 33291 RVA: 0x0015AFBB File Offset: 0x001591BB
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RelicFilterPlanSettings Settings
		{
			get
			{
				if (this.infoOneofCaseCase_ != ModifyRelicFilterPlanCsReq.InfoOneofCaseOneofCase.Settings)
				{
					return null;
				}
				return (RelicFilterPlanSettings)this.infoOneofCase_;
			}
			set
			{
				this.infoOneofCase_ = value;
				this.infoOneofCaseCase_ = ((value == null) ? ModifyRelicFilterPlanCsReq.InfoOneofCaseOneofCase.None : ModifyRelicFilterPlanCsReq.InfoOneofCaseOneofCase.Settings);
			}
		}

		// Token: 0x170024B9 RID: 9401
		// (get) Token: 0x0600820C RID: 33292 RVA: 0x0015AFD2 File Offset: 0x001591D2
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ModifyRelicFilterPlanCsReq.InfoOneofCaseOneofCase InfoOneofCaseCase
		{
			get
			{
				return this.infoOneofCaseCase_;
			}
		}

		// Token: 0x0600820D RID: 33293 RVA: 0x0015AFDA File Offset: 0x001591DA
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void ClearInfoOneofCase()
		{
			this.infoOneofCaseCase_ = ModifyRelicFilterPlanCsReq.InfoOneofCaseOneofCase.None;
			this.infoOneofCase_ = null;
		}

		// Token: 0x0600820E RID: 33294 RVA: 0x0015AFEA File Offset: 0x001591EA
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as ModifyRelicFilterPlanCsReq);
		}

		// Token: 0x0600820F RID: 33295 RVA: 0x0015AFF8 File Offset: 0x001591F8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(ModifyRelicFilterPlanCsReq other)
		{
			return other != null && (other == this || (this.SlotIndex == other.SlotIndex && !(this.Name != other.Name) && object.Equals(this.Icon, other.Icon) && object.Equals(this.Settings, other.Settings) && this.InfoOneofCaseCase == other.InfoOneofCaseCase && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06008210 RID: 33296 RVA: 0x0015B080 File Offset: 0x00159280
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.SlotIndex != 0U)
			{
				num ^= this.SlotIndex.GetHashCode();
			}
			if (this.HasName)
			{
				num ^= this.Name.GetHashCode();
			}
			if (this.infoOneofCaseCase_ == ModifyRelicFilterPlanCsReq.InfoOneofCaseOneofCase.Icon)
			{
				num ^= this.Icon.GetHashCode();
			}
			if (this.infoOneofCaseCase_ == ModifyRelicFilterPlanCsReq.InfoOneofCaseOneofCase.Settings)
			{
				num ^= this.Settings.GetHashCode();
			}
			num ^= (int)this.infoOneofCaseCase_;
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06008211 RID: 33297 RVA: 0x0015B10E File Offset: 0x0015930E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06008212 RID: 33298 RVA: 0x0015B116 File Offset: 0x00159316
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06008213 RID: 33299 RVA: 0x0015B120 File Offset: 0x00159320
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.HasName)
			{
				output.WriteRawTag(10);
				output.WriteString(this.Name);
			}
			if (this.SlotIndex != 0U)
			{
				output.WriteRawTag(72);
				output.WriteUInt32(this.SlotIndex);
			}
			if (this.infoOneofCaseCase_ == ModifyRelicFilterPlanCsReq.InfoOneofCaseOneofCase.Settings)
			{
				output.WriteRawTag(114);
				output.WriteMessage(this.Settings);
			}
			if (this.infoOneofCaseCase_ == ModifyRelicFilterPlanCsReq.InfoOneofCaseOneofCase.Icon)
			{
				output.WriteRawTag(122);
				output.WriteMessage(this.Icon);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06008214 RID: 33300 RVA: 0x0015B1B8 File Offset: 0x001593B8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.SlotIndex != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.SlotIndex);
			}
			if (this.HasName)
			{
				num += 1 + CodedOutputStream.ComputeStringSize(this.Name);
			}
			if (this.infoOneofCaseCase_ == ModifyRelicFilterPlanCsReq.InfoOneofCaseOneofCase.Icon)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.Icon);
			}
			if (this.infoOneofCaseCase_ == ModifyRelicFilterPlanCsReq.InfoOneofCaseOneofCase.Settings)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.Settings);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06008215 RID: 33301 RVA: 0x0015B244 File Offset: 0x00159444
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(ModifyRelicFilterPlanCsReq other)
		{
			if (other == null)
			{
				return;
			}
			if (other.SlotIndex != 0U)
			{
				this.SlotIndex = other.SlotIndex;
			}
			ModifyRelicFilterPlanCsReq.InfoOneofCaseOneofCase infoOneofCaseCase = other.InfoOneofCaseCase;
			if (infoOneofCaseCase != ModifyRelicFilterPlanCsReq.InfoOneofCaseOneofCase.Name)
			{
				if (infoOneofCaseCase != ModifyRelicFilterPlanCsReq.InfoOneofCaseOneofCase.Settings)
				{
					if (infoOneofCaseCase == ModifyRelicFilterPlanCsReq.InfoOneofCaseOneofCase.Icon)
					{
						if (this.Icon == null)
						{
							this.Icon = new RelicFilterPlanIcon();
						}
						this.Icon.MergeFrom(other.Icon);
					}
				}
				else
				{
					if (this.Settings == null)
					{
						this.Settings = new RelicFilterPlanSettings();
					}
					this.Settings.MergeFrom(other.Settings);
				}
			}
			else
			{
				this.Name = other.Name;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06008216 RID: 33302 RVA: 0x0015B2EF File Offset: 0x001594EF
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06008217 RID: 33303 RVA: 0x0015B2F8 File Offset: 0x001594F8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num <= 72U)
				{
					if (num == 10U)
					{
						this.Name = input.ReadString();
						continue;
					}
					if (num == 72U)
					{
						this.SlotIndex = input.ReadUInt32();
						continue;
					}
				}
				else
				{
					if (num == 114U)
					{
						RelicFilterPlanSettings relicFilterPlanSettings = new RelicFilterPlanSettings();
						if (this.infoOneofCaseCase_ == ModifyRelicFilterPlanCsReq.InfoOneofCaseOneofCase.Settings)
						{
							relicFilterPlanSettings.MergeFrom(this.Settings);
						}
						input.ReadMessage(relicFilterPlanSettings);
						this.Settings = relicFilterPlanSettings;
						continue;
					}
					if (num == 122U)
					{
						RelicFilterPlanIcon relicFilterPlanIcon = new RelicFilterPlanIcon();
						if (this.infoOneofCaseCase_ == ModifyRelicFilterPlanCsReq.InfoOneofCaseOneofCase.Icon)
						{
							relicFilterPlanIcon.MergeFrom(this.Icon);
						}
						input.ReadMessage(relicFilterPlanIcon);
						this.Icon = relicFilterPlanIcon;
						continue;
					}
				}
				this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
			}
		}

		// Token: 0x040031D7 RID: 12759
		private static readonly MessageParser<ModifyRelicFilterPlanCsReq> _parser = new MessageParser<ModifyRelicFilterPlanCsReq>(() => new ModifyRelicFilterPlanCsReq());

		// Token: 0x040031D8 RID: 12760
		private UnknownFieldSet _unknownFields;

		// Token: 0x040031D9 RID: 12761
		public const int SlotIndexFieldNumber = 9;

		// Token: 0x040031DA RID: 12762
		private uint slotIndex_;

		// Token: 0x040031DB RID: 12763
		public const int NameFieldNumber = 1;

		// Token: 0x040031DC RID: 12764
		public const int IconFieldNumber = 15;

		// Token: 0x040031DD RID: 12765
		public const int SettingsFieldNumber = 14;

		// Token: 0x040031DE RID: 12766
		private object infoOneofCase_;

		// Token: 0x040031DF RID: 12767
		private ModifyRelicFilterPlanCsReq.InfoOneofCaseOneofCase infoOneofCaseCase_;

		// Token: 0x02001A9D RID: 6813
		public enum InfoOneofCaseOneofCase
		{
			// Token: 0x040065D7 RID: 26071
			None,
			// Token: 0x040065D8 RID: 26072
			Name,
			// Token: 0x040065D9 RID: 26073
			Icon = 15,
			// Token: 0x040065DA RID: 26074
			Settings = 14
		}
	}
}
